package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-05-29
 */
@TableName("clm_teacher_room")
public class TeacherRoom extends Model<TeacherRoom> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 名师表ID
     */
    @TableField("clm_teacher_id")
    private Integer clmTeacherId;
    /**
     * 名师ID
     */
    @TableField("teacher_id")
    private String teacherId;
    /**
     * 课程ID
     */
    @TableField("room_id")
    private String roomId;
    /**
     * 是否移除 1-是 0-否
     */
    @TableField("be_delete")
    private String beDelete;
    /**
     * 状态 是否禁用 1- 是 0-否
     */
    private String status;
    /**
     * 排序字段
     */
    private Integer num;
    /**
     * 置顶 0-否 1-是
     */
    @TableField("be_top")
    private String beTop;
    
    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;

    
    public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getClmTeacherId() {
        return clmTeacherId;
    }

    public void setClmTeacherId(Integer clmTeacherId) {
        this.clmTeacherId = clmTeacherId;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getBeDelete() {
        return beDelete;
    }

    public void setBeDelete(String beDelete) {
        this.beDelete = beDelete;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getBeTop() {
        return beTop;
    }

    public void setBeTop(String beTop) {
        this.beTop = beTop;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

	@Override
	public String toString() {
		return "TeacherRoom [id=" + id + ", clmTeacherId=" + clmTeacherId
				+ ", teacherId=" + teacherId + ", roomId=" + roomId
				+ ", beDelete=" + beDelete + ", status=" + status + ", num="
				+ num + ", beTop=" + beTop + ", updateTime=" + updateTime + "]";
	}

   
}
